package com.wzgl.core.utils;

public enum MessageEnum {
	NO_LOGIN(-1, "用户未登录"),
	SUCCESS(0, "成功"),
    PARAM_ERROR(1, "参数为空"),
    UNKNOW_USER(2, "用户不存在"),
    LOGIN_USER_ERROR(3, "用户名或者密码不正确"),
    TICKET_TIMEOUT(4, "用户操作超时，请重新登录"),
    TICKET_CREATE_ERROR(5, "门票生成出错"),
    REGISTER_ERROR(6,"验证码错误"),
    REPLACE_USER(7,"用户已存在"),
    ERROR_MOBILE(8,"手机号码错误或者验证码失效"),
    HTTP_FS_FAIL(9,"httpCilent发送请求失败"), 
    UNKNOW_TICKET(10, "ticket错误"),
    LINK_EXPIRE(11,"链接失效"),
    NOT_RELATION(12,"该用户未关联账号"),
    ERROR_PASSWORD(13, "密码错误"),
    NO_OPERATION(14,"操作不允许"),
    ZERO_OPERATION_RESULT(15,"sql执行结果：0"),
    NONE_DATA (16,"暂无数据"),
    PAY_FAILURE(17,"支付失败"),
    Refund_FAILURE(18,"退款失败"),
    DATA_ERROE(19,"非法数据"),
    PARAM_NOT_VALID(20,"参数有误"),
    NULL_RESULT(21,"结果为空"),
    Refund_ACCEPT_IN(22,"退款受理中"),
    Refund_TURN_ON_BEHALF_OF(23,"退款转入代发"),
    SUM_OF_MONEY_ERROR(24,"金额不对应"),
    NOT_ENTERPRISE(25,"该用户还没有通过企业认证"),
    HAS_BAN_WORD(26,"项目名含有敏感字"),
    NO_STATUS(27,"不存在该状态订单"),
    NO_UNKNOWN(28,"未知结果"),
    START_GREATER_END(29,"开始时间大于结束时间"),
    DATE_TYPE_ERROR(30,"时间格式错误"),
    DATA_TO_LONG(31,"数据过长"),
    UNKNOW_ERROR(9999, "网络异常"),
    REDIS_FAILURE(10000,"redis生成对象失败"),
    MATCHNAME_TO_LONG(32,"大赛名字过长"),
    MATCHINTRODUCE_TO_LONG(33,"大赛介绍过长"),
    MATCHCONTENT_TO_LONG(34,"大赛内容过长"),
    OTHEREXPLAIN_TO_LONG(35,"说明过长"),
    OPUSTITLE_TO_LONG(36,"标题过长"),
    OPUSINTRODUCE_TO_LONG(37,"简介过长"),
    
    //96-100 sql操作状态码
    INSERT_FAILURE(97,"插入失败"),
    UPDATE_FAILURE(98,"更新失败"),
    DELETE_FAILURE(99,"删除失败"),
    QUERY_FAILURE(100,"查询失败"),
    ORDER_STATUS(111,"该订单已删除"),
    //图片上传状态  140~150
    UPLOAD_FAILURE(141,"上传失败");
    
    private int retCode;//返回码
    private String retMess;//返回信息

    MessageEnum(int retCode, String retMess) {
        this.retCode = retCode;
        this.retMess = retMess;
    }

    public int getRetCode() {
        return retCode;
    }

    public void setRetCode(int retCode) {
        this.retCode = retCode;
    }

    public String getRetMess() {
        return retMess;
    }

    public void setRetMess(String retMess) {
        this.retMess = retMess;
    }

    public static void main(String[] args) {
        System.out.println(System.currentTimeMillis());
    }
}